<?php
        $bar = '<div class="positionbar"><img src="../Public/images/position_ico.gif" />导航位置：<a href="__APP__">管理首页</a>';
        if (!isset($_GET['tag'])) $_GET['tag'] = 0;
        foreach (unique_arr($_SESSION['au_menu_list']) as $key => $val){
            if ($val['id'] == $_GET['tag']){
                $bar .= ' &raquo; <a href="'.U('index/main',array('tag' => $_GET['tag'])).'">'.$val['title'].'</a>';
            }
        }
        
        foreach ($_SESSION['menu'.$_SESSION['authId']] as $a => $v){
            if (strtolower($v['name']) == strtolower(MODULE_NAME)){
                $bar .= ' &raquo; <a href="'.U('index',array('tag' => $_GET['tag'])).'">'.$v['title'].'</a>';
            }
        }
        
        switch(strtolower(ACTION_NAME)){
            case 'index' :
            	if (strtolower(MODULE_NAME) == 'index'){
            		$bar .= ' &raquo; 首页</div>';
            	}else{
            		$bar .= ' &raquo; 列表</div>';
            	}
                break;
            case 'edit' :
                $bar .= ' &raquo; 编辑 &raquo; ';
                break;
            case 'add' :
                $bar .= ' &raquo; 添加</div>';
                break;
            default :
                if (strtolower(MODULE_NAME) == 'system'){
                    $bar .= ' &raquo; 修改配置</div>';
                }else{
                	$bar .= ' &raquo; 列表</div>';
                }
                break;
        }
        
        echo $bar;
    ?>